
namespace IQIGame.Onigao.Framework
{
    /// <summary>
    /// 网络消息包基类。
    /// </summary>
    public abstract class BasePacket
    {
        protected bool m_active = false;

        /// <summary>
        /// 消息包前4个字节表示数据包长度
        /// </summary>
        public static readonly int HEAD_LENGTH = 4;

        /// <summary>
        /// 设置package有效状态
        /// </summary>
        public virtual bool Active
        {
            get
            {
                return m_active;
            }
            set
            {
                m_active = value;
            }
        }

    }
}